﻿
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Oliving.Edge.Model.Models
{
    ///<summary>
    ///通道
    ///</summary> 

    [SugarTable("DTSN_TongDao")]
    [Serializable]
    public class DTSN_TongDao
    {
        public DTSN_TongDao()
        {
        }

        /// <summary> 
        /// Desc:通道 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "TD_ID", ColumnDescription = "通道")]
        public int TD_ID { get; set; }

        /// <summary> 
        /// Desc:通道名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_Name", ColumnDescription = "通道名称", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_Name { get; set; }

        /// <summary> 
        /// Desc:通道代码 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_Code", ColumnDescription = "通道代码", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_Code { get; set; }

        /// <summary> 
        /// Desc:备注 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_Remark", ColumnDescription = "备注", IsNullable = true, Length = 1000, ColumnDataType = "nvarchar")]
        public string TD_Remark { get; set; }

        /// <summary> 
        /// Desc:创建时间 
        /// Default: 
        /// Nullable:True 
        /// </summary>  
        [SugarColumn(ColumnName = "TD_CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
        public DateTime TD_CreateTime { get; set; } = DateTime.Now;

        /// <summary> 
        /// Desc:配型 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_Type", ColumnDescription = "配型", IsNullable = true)]
        public int? TD_Type { get; set; }

        /// <summary> 
        /// Desc:状态 
        /// Default: 
        /// Nullable:True 
        /// </summary>  
        [SugarColumn(ColumnName = "TD_State", ColumnDescription = "状态", IsNullable = true)]
        public int? TD_State { get; set; }

        /// <summary> 
        /// Desc:物料名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_WuLiao", ColumnDescription = "物料名称", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_WuLiao { get; set; }

        /// <summary> 
        /// Desc:物料代码 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_WuLiaoCode", ColumnDescription = "物料代码", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_WuLiaoCode { get; set; }

        /// <summary> 
        /// Desc:重量 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_Weight", ColumnDescription = "重量", IsNullable = true)]
        public decimal? TD_Weight { get; set; }

        /// <summary> 
        /// Desc:重量 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "TD_WeightA", ColumnDescription = "重量", IsNullable = true)]
        public decimal? TD_WeightA { get; set; }


        [SugarColumn(ColumnName = "TD_ShangWeiji", ColumnDescription = "上位机", IsNullable = true)]
        public int TD_ShangWeiji { get; set; }


        [SugarColumn(ColumnName = "TD_ReadCardIP", ColumnDescription = "读卡器IP", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_ReadCardIP { get; set; }




        [SugarColumn(ColumnName = "TD_ReadCardPort", ColumnDescription = "读卡器端口号", IsNullable = true, Length = 100, ColumnDataType = "nvarchar")]
        public string TD_ReadCardPort { get; set; }


    }

}
